package com.zhr.tea.utils;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

import okhttp3.OkHttpClient;

/**
 * Created by zhang on 2016/11/1.
 */

public  class RetrofitFactory {
   public static Gson getGson(){
        Gson gson = new GsonBuilder()
                .serializeNulls() //设置允许null类型
//                .setDateFormat("") //设置日期格式
                .excludeFieldsWithoutExposeAnnotation()
                .create();
        return gson;
    }
    public static OkHttpClient getOkHttp(){
        return new OkHttpClient.Builder().build();
    }



}
